<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="DetayisCreateDlg" widgetVar="DetayisCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.CreateDetayisTitle}">

            <h:form id="DetayisCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{detayisController.selected != null}">

                        <p:outputLabel value="#{bundle.CreateDetayisLabel_detayIsAdi}" for="detayIsAdi" />
                        <p:inputText id="detayIsAdi" value="#{detayisController.selected.detayIsAdi}" title="#{bundle.CreateDetayisTitle_detayIsAdi}" required="true" requiredMessage="#{bundle.CreateDetayisRequiredMessage_detayIsAdi}"/>

                        <p:outputLabel value="#{bundle.CreateDetayisLabel_detayIsAciklama}" for="detayIsAciklama" />
                        <p:inputText id="detayIsAciklama" value="#{detayisController.selected.detayIsAciklama}" title="#{bundle.CreateDetayisTitle_detayIsAciklama}" required="true" requiredMessage="#{bundle.CreateDetayisRequiredMessage_detayIsAciklama}"/>

                        <p:outputLabel value="#{bundle.CreateDetayisLabel_masterIsId}" for="masterIsId" />
                        <p:selectOneMenu id="masterIsId" value="#{detayisController.selected.masterIsId}" required="true" requiredMessage="#{bundle.EditDetayisRequiredMessage_masterIsId}">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{masterisController.items}"
                                           var="masterIsIdItem"
                                           itemValue="#{masterIsIdItem}"
                                           itemLabel="#{masterIsIdItem.masterIsId.toString()}"
                                           />
                            <f:converter binding="#{masterisConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{detayisController.saveNew}" value="#{bundle.Save}" update="display,:DetayisListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,DetayisCreateDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="DetayisCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
